/*CodeBuilder v1.0.4 by 2020/11/15 19:29:32 */
using System;
using ASmile.ORM.Entitys;

namespace ASmile.DBModel
{
	public partial class Sys_GridColumn : EntityBase
	{
		private System.String _Id;
		/// <summary>
		/// Id
		/// </summary>
		[Entity(CNId, 0, true, IsPrimaryKey = true)]
		public System.String Id
		{
			get { return _Id; }
			set
			{
				if (!OnPropertyChanged(CNId, _Id, value)) return;
				_Id = value;
				SetFieldChanged(CNId) ;
			}
		}

		private System.String _FormName;
		/// <summary>
		/// FormName
		/// </summary>
		[Entity(CNFormName, 1, true)]
		public System.String FormName
		{
			get { return _FormName; }
			set
			{
				if (!OnPropertyChanged(CNFormName, _FormName, value)) return;
				_FormName = value;
				SetFieldChanged(CNFormName) ;
			}
		}

		private System.String _DgvName;
		/// <summary>
		/// DgvName
		/// </summary>
		[Entity(CNDgvName, 2, true)]
		public System.String DgvName
		{
			get { return _DgvName; }
			set
			{
				if (!OnPropertyChanged(CNDgvName, _DgvName, value)) return;
				_DgvName = value;
				SetFieldChanged(CNDgvName) ;
			}
		}

		private System.Int32 _ColumnIndex;
		/// <summary>
		/// 列顺序，不能重复，排序
		/// </summary>
		[Entity(CNColumnIndex, 3, true)]
		public System.Int32 ColumnIndex
		{
			get { return _ColumnIndex; }
			set
			{
				if (!OnPropertyChanged(CNColumnIndex, _ColumnIndex, value)) return;
				_ColumnIndex = value;
				SetFieldChanged(CNColumnIndex) ;
			}
		}

		private System.String _ColumnName;
		/// <summary>
		/// ColumnName
		/// </summary>
		[Entity(CNColumnName, 4, true)]
		public System.String ColumnName
		{
			get { return _ColumnName; }
			set
			{
				if (!OnPropertyChanged(CNColumnName, _ColumnName, value)) return;
				_ColumnName = value;
				SetFieldChanged(CNColumnName) ;
			}
		}

		private System.String _ColumnTitle;
		/// <summary>
		/// ColumnTitle
		/// </summary>
		[Entity(CNColumnTitle, 5, true)]
		public System.String ColumnTitle
		{
			get { return _ColumnTitle; }
			set
			{
				if (!OnPropertyChanged(CNColumnTitle, _ColumnTitle, value)) return;
				_ColumnTitle = value;
				SetFieldChanged(CNColumnTitle) ;
			}
		}

		private System.String _ColumnType;
		/// <summary>
		/// 列类型，0：文本，1：数字（左对齐），2：CheckBox
		/// </summary>
		[Entity(CNColumnType, 6, true)]
		public System.String ColumnType
		{
			get { return _ColumnType; }
			set
			{
				if (!OnPropertyChanged(CNColumnType, _ColumnType, value)) return;
				_ColumnType = value;
				SetFieldChanged(CNColumnType) ;
			}
		}

		private System.Int32 _ColumnWidth;
		/// <summary>
		/// 列宽，默认为0为自适应
		/// </summary>
		[Entity(CNColumnWidth, 7, true)]
		public System.Int32 ColumnWidth
		{
			get { return _ColumnWidth; }
			set
			{
				if (!OnPropertyChanged(CNColumnWidth, _ColumnWidth, value)) return;
				_ColumnWidth = value;
				SetFieldChanged(CNColumnWidth) ;
			}
		}

		private System.String _Alignment;
		/// <summary>
		/// 对齐方式
		/// </summary>
		[Entity(CNAlignment, 8)]
		public System.String Alignment
		{
			get { return _Alignment; }
			set
			{
				if (!OnPropertyChanged(CNAlignment, _Alignment, value)) return;
				_Alignment = value;
				SetFieldChanged(CNAlignment) ;
			}
		}

		private System.Boolean _IsReadOnly;
		/// <summary>
		/// IsReadOnly
		/// </summary>
		[Entity(CNIsReadOnly, 9, true)]
		public System.Boolean IsReadOnly
		{
			get { return _IsReadOnly; }
			set
			{
				if (!OnPropertyChanged(CNIsReadOnly, _IsReadOnly, value)) return;
				_IsReadOnly = value;
				SetFieldChanged(CNIsReadOnly) ;
			}
		}

		private System.Boolean _IsVisible;
		/// <summary>
		/// IsVisible
		/// </summary>
		[Entity(CNIsVisible, 10, true)]
		public System.Boolean IsVisible
		{
			get { return _IsVisible; }
			set
			{
				if (!OnPropertyChanged(CNIsVisible, _IsVisible, value)) return;
				_IsVisible = value;
				SetFieldChanged(CNIsVisible) ;
			}
		}

		private System.Boolean _IsAdSearch;
		/// <summary>
		/// 是否启用高级搜索
		/// </summary>
		[Entity(CNIsAdSearch, 11, true)]
		public System.Boolean IsAdSearch
		{
			get { return _IsAdSearch; }
			set
			{
				if (!OnPropertyChanged(CNIsAdSearch, _IsAdSearch, value)) return;
				_IsAdSearch = value;
				SetFieldChanged(CNIsAdSearch) ;
			}
		}

		private System.Boolean _IsFrozen;
		/// <summary>
		/// 是否冻结列(冻结列只能在边上)
		/// </summary>
		[Entity(CNIsFrozen, 12, true)]
		public System.Boolean IsFrozen
		{
			get { return _IsFrozen; }
			set
			{
				if (!OnPropertyChanged(CNIsFrozen, _IsFrozen, value)) return;
				_IsFrozen = value;
				SetFieldChanged(CNIsFrozen) ;
			}
		}

		private System.String _DataType;
		/// <summary>
		/// 高级搜索的数据类型
		/// </summary>
		[Entity(CNDataType, 13)]
		public System.String DataType
		{
			get { return _DataType; }
			set
			{
				if (!OnPropertyChanged(CNDataType, _DataType, value)) return;
				_DataType = value;
				SetFieldChanged(CNDataType) ;
			}
		}

		private System.String _AutoSizeMode;
		/// <summary>
		/// 列大小模式
		/// </summary>
		[Entity(CNAutoSizeMode, 14)]
		public System.String AutoSizeMode
		{
			get { return _AutoSizeMode; }
			set
			{
				if (!OnPropertyChanged(CNAutoSizeMode, _AutoSizeMode, value)) return;
				_AutoSizeMode = value;
				SetFieldChanged(CNAutoSizeMode) ;
			}
		}

		private System.String _FormatStr;
		/// <summary>
		/// 格式化字符串
		/// </summary>
		[Entity(CNFormatStr, 15)]
		public System.String FormatStr
		{
			get { return _FormatStr; }
			set
			{
				if (!OnPropertyChanged(CNFormatStr, _FormatStr, value)) return;
				_FormatStr = value;
				SetFieldChanged(CNFormatStr) ;
			}
		}

		private System.String _Remark;
		/// <summary>
		/// Remark
		/// </summary>
		[Entity(CNRemark, 16)]
		public System.String Remark
		{
			get { return _Remark; }
			set
			{
				if (!OnPropertyChanged(CNRemark, _Remark, value)) return;
				_Remark = value;
				SetFieldChanged(CNRemark) ;
			}
		}

		private System.DateTime _AddTime;
		/// <summary>
		/// AddTime
		/// </summary>
		[Entity(CNAddTime, 17, true)]
		public System.DateTime AddTime
		{
			get { return _AddTime; }
			set
			{
				if (!OnPropertyChanged(CNAddTime, _AddTime, value)) return;
				_AddTime = value;
				SetFieldChanged(CNAddTime) ;
			}
		}

		private System.String _AddUserId;
		/// <summary>
		/// AddUserId
		/// </summary>
		[Entity(CNAddUserId, 18)]
		public System.String AddUserId
		{
			get { return _AddUserId; }
			set
			{
				if (!OnPropertyChanged(CNAddUserId, _AddUserId, value)) return;
				_AddUserId = value;
				SetFieldChanged(CNAddUserId) ;
			}
		}

		private System.String _AddHost;
		/// <summary>
		/// AddHost
		/// </summary>
		[Entity(CNAddHost, 19)]
		public System.String AddHost
		{
			get { return _AddHost; }
			set
			{
				if (!OnPropertyChanged(CNAddHost, _AddHost, value)) return;
				_AddHost = value;
				SetFieldChanged(CNAddHost) ;
			}
		}

		private System.DateTime? _LastTime;
		/// <summary>
		/// LastTime
		/// </summary>
		[Entity(CNLastTime, 20)]
		public System.DateTime? LastTime
		{
			get { return _LastTime; }
			set
			{
				if (!OnPropertyChanged(CNLastTime, _LastTime, value)) return;
				_LastTime = value;
				SetFieldChanged(CNLastTime) ;
			}
		}

		private System.String _LastHost;
		/// <summary>
		/// LastHost
		/// </summary>
		[Entity(CNLastHost, 21)]
		public System.String LastHost
		{
			get { return _LastHost; }
			set
			{
				if (!OnPropertyChanged(CNLastHost, _LastHost, value)) return;
				_LastHost = value;
				SetFieldChanged(CNLastHost) ;
			}
		}

		private System.String _LastUserId;
		/// <summary>
		/// LastUserId
		/// </summary>
		[Entity(CNLastUserId, 22)]
		public System.String LastUserId
		{
			get { return _LastUserId; }
			set
			{
				if (!OnPropertyChanged(CNLastUserId, _LastUserId, value)) return;
				_LastUserId = value;
				SetFieldChanged(CNLastUserId) ;
			}
		}

		#region 字段名的定义
		public const string CNId = "Id";
		public const string CNFormName = "FormName";
		public const string CNDgvName = "DgvName";
		public const string CNColumnIndex = "ColumnIndex";
		public const string CNColumnName = "ColumnName";
		public const string CNColumnTitle = "ColumnTitle";
		public const string CNColumnType = "ColumnType";
		public const string CNColumnWidth = "ColumnWidth";
		public const string CNAlignment = "Alignment";
		public const string CNIsReadOnly = "IsReadOnly";
		public const string CNIsVisible = "IsVisible";
		public const string CNIsAdSearch = "IsAdSearch";
		public const string CNIsFrozen = "IsFrozen";
		public const string CNDataType = "DataType";
		public const string CNAutoSizeMode = "AutoSizeMode";
		public const string CNFormatStr = "FormatStr";
		public const string CNRemark = "Remark";
		public const string CNAddTime = "AddTime";
		public const string CNAddUserId = "AddUserId";
		public const string CNAddHost = "AddHost";
		public const string CNLastTime = "LastTime";
		public const string CNLastHost = "LastHost";
		public const string CNLastUserId = "LastUserId";
		#endregion

	}
}
